<?
if(is_array($model) && count($model)>0)
	foreach($model as $gallery){
		$this->widget('ext.gallery.EGallery', array(
			'id'=>'galleries',
			'model'=>$gallery,
			'options'=>array(
				'height'=>Gallery::$_sizes['small'][1],
				'size'=>'normal',
				'title'=>true,
			)
		));
	}
else
	echo '<span class="null">Не задан</span>';
?>